1.2.4.1. alpha.deadcode.UnreachableCode (C, C++)
Check unreachable code.
Examples:
// C int test() { int x = 1; while(x); return x; // warn } // C++ void test() { int a = 2; while (a > 1) a--; if (a > 1) a++; // warn } // Objective-C void test(id x) { return; [x retain]; // warn }